/**
 * 
 */
package javas.system;

import java.util.Properties;

/**
 * @author lionbule
 */
public class PrintSysProperties {

    public static void main(String[] args) {
        Properties ps = System.getProperties();
        for (Object t : ps.keySet()) {
            if (t instanceof String) {
                String key = (String) t;
                System.out.println(key+"\t\t\t"+ps.getProperty(key));
            }
        }

        System.out.println("os=" + System.getProperty("os.name"));
        String crlf = System.getProperty("line.separator");
        System.out.println("line.separator=" + crlf);
    }

}
